import math
numbers = [-5, 0, 5, 10, 15]
numbers2 = (2,4,6,8)
# 绝对值
a = -1
print(abs(a))

# 最大值
print(f'{max(1,3,4)}')
print(f'{max(numbers)}')
print(f'{max(numbers2)}')

# 最小值
print(min(numbers))

# 2的3次方
print(pow(2,3))

# 四舍五入
print(round(3.6)) # 4
print(round(3.4)) # 3
print(round(3.1415926, 2)) # 3.14

# 向上和向下取整
print(f'{math.ceil(3.14)}')
print(math.floor(3.14))